<div class="zs-body" data-ng-init="formInit('gzzysq', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzzysq');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">行政管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">资源申请</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="申请" ng-if="mi.sa || mi.xzgl_zydd"
                ng-click="startNewBpm('gzzysq.html','zydd','gzzysq');"/>
           <!-- <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gzzysq', gzzysq.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gzzysq')"/>-->
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="唯一编号" ng-model="gzzysq.queryObject['id']"/>
                </span>-->
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="资源类型" ng-model="gzzysq.queryObject['szylx']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="使用人" ng-model="gzzysq.queryObject['ssyr']"/>
                </span>
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="申请原因" ng-model="gzzysq.queryObject['ssqyy']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="联系方式" ng-model="gzzysq.queryObject['slxfs']"/>
                </span>
				<span class="search-warpper">
                    <ag-Datebox id='qi_dsysj'  showcurday='true'
                       		class="zs-input" style="width:175px;height: 28px"
                       		ng-model="gzzysq.queryObject['dsysj']" >
				   	</ag-Datebox>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="所属项目" ng-model="gzzysq.queryObject['sssxm']"/>
                </span>-->
            </div>
            <div class="operation item" style="margin-top:7px;">
				<input type="button" class="zs-btn orange" value="查询" ng-click="loadData('gzzysq')" />
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzzysq','allCheckbox');" />
                                    </th>
									<!--<th>唯一编号</th>-->
									<th>资源类型</th>
									<th>使用人</th>
									<th>申请原因</th>
									<th>联系方式</th>
									<th>使用时间</th>
									<th>申请时间</th>
									<th>使用开始时间</th>
									<th>使用结束时间</th>
									<th>所属项目</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzzysq.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzzysq',r);"
                                            ng-model="r.selected" />
                                    </td>
									<!--  唯一编号 -->
            						<!--<td>
                                        <a ng-click="editRow('gzzysq',r) && openWindow('edit');">
                                            <label ng-bind="r.id"></label>
                                        </a>
                                   </td>-->
									<!--  资源类型 -->
            						<td>
                                        <a ng-click="toQueryWork('gzzysq.html','zydd','gzzysq','gzzysq',r.id);">
                                            <label ng-bind="r.szylx"></label>
                                        </a>
                                   </td>
									<!--  使用人 -->
            						<td>
                                        <a ng-click="toQueryWork('gzzysq.html','zydd','gzzysq','gzzysq',r.id);">
                                            <label ng-bind="r.ssyr"></label>
                                        </a>
                                   </td>
									<!--  申请原因 -->
            						<td>
                                        <a ng-click="toQueryWork('gzzysq.html','zydd','gzzysq','gzzysq',r.id);">
                                            <label ng-bind="r.ssqyy"></label>
                                        </a>
                                   </td>
									<!--  联系方式 -->
            						<td>
                                        <a ng-click="toQueryWork('gzzysq.html','zydd','gzzysq','gzzysq',r.id);">
                                            <label ng-bind="r.slxfs"></label>
                                        </a>
                                   </td>
									<!--  使用时间 -->
								   <td>
                                        <a ng-click="toQueryWork('gzzysq.html','zydd','gzzysq','gzzysq',r.id);">
                                            <label ng-bind="r.dsysj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                  </td>
                                  <!--  申请时间 -->
								   <td>
                                        <a ng-click="toQueryWork('gzzysq.html','zydd','gzzysq','gzzysq',r.id);">
                                            <label ng-bind="r.dsqsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
                                   <!--  使用开始时间 -->
								   <td>
                                         <a ng-click="toQueryWork('gzzysq.html','zydd','gzzysq','gzzysq',r.id);">
                                            <label ng-bind="r.dsykssj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
                                   <!--  使用结束时间 -->
								   <td>
                                        <a ng-click="toQueryWork('gzzysq.html','zydd','gzzysq','gzzysq',r.id);">
                                            <label ng-bind="r.dsyjssj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
									<!--  所属项目 -->
            						<td>
                                        <a ng-click="toQueryWork('gzzysq.html','zydd','gzzysq','gzzysq',r.id);">
                                            <label ng-bind="r.sssxm"></label>
                                        </a>
                                   </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzzysq'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="资源申请编辑" width='560px' height='286px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
          					<!--<tr>
                                <td class="text" width="20%">唯一编号</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzzysq.editRow.id" class="zs-input" />
                                </td>
                            </tr>-->
          					<tr>
                                <td class="text" width="20%">资源类型</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzzysq.editRow.szylx" class="zs-input" />
                                </td>
                                <td class="text" width="20%">使用人</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzzysq.editRow.ssyr" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">申请原因</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzzysq.editRow.ssqyy" class="zs-input" />
                                </td>
                                <td class="text" width="20%">联系方式</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzzysq.editRow.slxfs" class="zs-input" />
                                </td>
                            </tr>
						   <tr>
                                <td class="text" width="20%">使用时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_dsysj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzzysq.editRow.dsysj" >
							   		</ag-Datebox>
                                </td>
                                <td class="text" width="20%">所属项目</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzzysq.editRow.sssxm" class="zs-input" />
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">申请时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_dsysj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzzysq.editRow.dsqsj" >
							   		</ag-Datebox>
                                </td>
                                <td class="text" width="20%">使用开始时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_dsysj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzzysq.editRow.dsykssj" >
							   		</ag-Datebox>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">使用结束时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_dsysj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzzysq.editRow.dsyjssj" >
							   		</ag-Datebox>
                                </td>
                                <td colspan="2"></td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('gzzysq', gzzysq.editRow, saveCloseWindow)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>